package com.gupao.controller;
import org.gupao.normal.user.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class UserController {

    @Autowired
    IUserService userService;

    @GetMapping(value = "/coupon",produces = "application/json;charset=utf-8")
    public String validCoupons(){
        return userService.selectValidTemplates();
    }
}
